package com.shhic.hhplt.server.biz;

import com.shhic.hhplt.server.exceptions.BoxNumberParamException;
import com.shhic.hhplt.server.exceptions.CodeExhaustException;
import com.shhic.hhplt.server.exceptions.NoBoxNumberException;
import com.shhic.hhplt.server.exceptions.PatternMismatchException;
import com.shhic.hhplt.server.model.BoxNumber;
import com.shhic.hhplt.server.model.CommonRtnString;

public interface IBoxNumberMaintaince {

	CommonRtnString generateBoxNumber(String key) throws CodeExhaustException, NoBoxNumberException, BoxNumberParamException;

	void updateBoxNumber(BoxNumber bn) throws PatternMismatchException;

	void notifyDeletion(String codeName);

	void retrieveBoxNumber(String key, String code) throws NoBoxNumberException;

	CommonRtnString getCount(String codeName) throws NoBoxNumberException;

}
